package com.woniu.controller;

import com.woniu.entity.RbacMenu;
import com.woniu.entity.ResponseEntity;
import com.woniu.service.RbacRoleMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author WenXin
 * @version 1.0
 * @description: TODO
 * @date 2022/9/11 16:13
 */
@RestController
@RequestMapping("/rbacRoleMenu")
public class RbacRoleMenuController {
    @Autowired
    RbacRoleMenuService rbacRoleMenuService;

    @PutMapping("/editRoleMenu/{id}")
    public ResponseEntity editRoleMenu(@RequestBody List<RbacMenu> list, @PathVariable int id) {

        return rbacRoleMenuService.editRoleMenu(list, id);
    }
}
